<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div class="input-group" style="margin-left: 36px; margin-bottom: 12px;">
	<span class="input-group-addon" style="width: 80px;">选择班级</span> 
		<select id="tbclassid" name="tbClass"  class="form-control" style="margin-right: 30px;width: 260px;" onchange="fun()">
			<c:forEach items="${tbClass}" var="b">
				<option value="${b.id}">${b.className}</option>
			</c:forEach>
		</select> 
	<span class="input-group-addon selectpicker" style="width: 80px;">选择学生</span> 
		<select id="xuesheng" name="xuesheng" onchange="fun1()" class="form-control" style="margin-right: 30px;width: 260px;">
	
		</select>
</div>
<div id="div2"></div>
<script type="text/javascript">
	fun();
	function fun() {
		var tbclassid = $("#tbclassid").val();
		$("#xuesheng").load("../grade/stuall?tbclassid=" + tbclassid);
	}
	
	 fun1();
	function fun1() {
		var xuesheng = $("#xuesheng").val();
		$("#div2").load("../grade/student1?xuesheng="+ xuesheng);
	}
</script>